package cn.graydove.bot.adapter;

import cn.graydove.bot.mirai.Client;
import net.mamoe.mirai.contact.Member;


public class GroupMessageEvent {
    private Client client;

    public Client getClient() {
        return client;
    }

    public GroupMessageEvent(Client client) {
        this.client = client;
    }

    public Long getUserId() {
        return client.getSender().getId();
    }

    public Long getGroupId() {
        return client.getSubject().getId();
    }

    public String getName() {
        return client.getSender().getNameCard();
    }

    public Member getSender() {
        return client.getSender();
    }

    public String getMessage() {
        return client.getMessage().contentToString();
    }

    public long getSelfId() {
        return client.getBot().getId();
    }
}
